package com.jbinfo.mongoot.util;

import java.util.List;
/**
 * 分页类
 * @author liangjma
 *
 * @param <T>
 */
public class PageModel<T> {
		
    //结果集   
    private List<T> rows;
    //查询记录数   
    private int total;
    //每页多少条数据   
    private int pageSize=5;  
    //第几页
    private int pageNumber=1;
    //跳过几条数  
    private int skip=0;
    
    /** 
     * 总页数 
     * @return 
     */
	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}

	public int getSkip() {
		return skip;
	}

	public void setSkip(int skip) {
		this.skip = skip;
	}
}


